import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity('tb_supplier', {
  comment: '供应商表',
})
export class Supplier {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '供应商名称' })
  name: string;

  @Column({ comment: '供应商类型' })
  type: string;

  @Column({ comment: '供应商电话' })
  phone: string;

  @Column({ comment: '供应商地址' })
  address: string;
}
